Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(v2): blog/docs: add more context in error messages #4989

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jun 16, 2021

Motivation

When looping over docs/versions/blog, if one item triggers an error, the user should be able to figure out which one with a relevant log.

Unfortunately, JS does not have a good way to add context to an existing error (until this proposal is implemented: https://github.com/tc39/proposal-error-cause) so I just add a log for now.

Helpful to debug some problems reported by users for which the logs are not meaningful enough

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

tests, no behavior changed

@slorber slorber added the pr: polish This PR adds a very minor behavior improvement that users will enjoy. label Jun 16, 2021
@slorber slorber requested a review from lex111 as a code owner June 16, 2021 18:11
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 16, 2021
@netlify
Copy link

netlify bot commented Jun 16, 2021

✔️ [V2]

🔨 Explore the source changes: b4a07ea

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/60ca3ed5cfbc0b00075d25ff

😎 Browse the preview: https://deploy-preview-4989--docusaurus-2.netlify.app

@slorber slorber merged commit 1b0acc5 into master Jun 16, 2021
@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 41
🟢 Accessibility 97
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-4989--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: 0 B

Total Size: 624 kB

ℹ️ View Unchanged
Filename Size Change
website/build/assets/css/styles.********.css 87.6 kB 0 B
website/build/assets/js/main.********.js 445 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 63.3 kB 0 B
website/build/docs/introduction/index.html 235 B 0 B
website/build/index.html 28.1 kB 0 B

compressed-size-action

@slorber slorber deleted the slorber/blog-docs-additional-error-context branch August 17, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: polish This PR adds a very minor behavior improvement that users will enjoy.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants